package com.tedu.bill.demo2;

import java.util.HashSet;
import java.util.Set;

/**
 * Author：毕龙
 * Date: 2024/5/19 15:25
 */
public class TestSet {
    public static void main(String[] args) {
       Set<Student> set =  new HashSet<Student>();
       set.add(new Student("王伟",18));
       set.add(new Student("小华",19));
       set.add(new Student("龙龙",29));
       set.add(new Student("龙龙",29));
       set.add(new Student("泽豪",38));
       //出现问题 Student哈希值


       for(Student s:set){
           System.out.println(s);
       }
    }
}
